﻿#ifndef LOGREADER_H
#define LOGREADER_H

#include <QObject>
// #include <QTextStream>
#include <QFile>

class LogReader : public QObject
{
    Q_OBJECT
public:
    explicit LogReader(QObject *parent = nullptr);
    LogReader(QString filePath);
    void closeFile();

public:
    bool readFile();
    QString readNextCycle();
    void setCycleEndFlag(QString flag);

private:
    // QTextStream* m_InTextStream = nullptr;
    QString m_CycleEndFlag;
    QFile* m_File = nullptr;
};

#endif // LOGREADER_H
